#
# 源目录
source_directory='/home/rbt.muzhongyun.cn'
# 备份目录
backup_directory='/home/rbt.muzhongyun.cn.bak'
#
# 先删除之前的备份文件夹
rm -rf ${backup_directory}
#
# 在创建备份文件夹
mkdir ${backup_directory}
#
# 在拷贝文件到备份文件夹
cp -a ${source_directory}/* ${backup_directory}/